var Download = {
    template: `<div class="ad-download">
                  <div class="content">
                     <div class="tips">
                       <img src="./images/nrng/zan@2x.png">
                       <div>更多信息，下载国泰君安君弘看牛人牛股社区~获取更多勋章！</div>
                      </div>
   
                      <a href="javascript:void(0);" id="yyzdownload" @click.stop="toDownload">
                        <img src="./images/nrng/xiazai.png" class="img-responsive">
                        <!--<span>下载国泰君安君弘</span>-->
                      </a>
                  </div>
               </div>`,
    methods: {
        toDownload () {
            var userCode = getUrlParam("userCode");
            var activityCode = getUrlParam("activitycode");
            var shareId = getUrlParam("shareid");
            if(shareId !== "" && typeof(shareId) !== 'undefined'){
                window.location.href = "https://fy.gtja.com/m/app/nrng/register.jsp?userCode=" + userCode + "&activityCode=" + activityCode + "&shareId=" + shareId;
            }else if(userCode !== "" && typeof(userCode) !== 'undefined'){
                window.location.href = "https://dl.app.gtja.com/nrng/share/share.register.html?userCode=" + userCode;
            }else{
                //易阳指下载页
                window.location.href = "https://yyz.gtja.com/dl?cid=yyz";
            }
        }
    }
}